//
//  ACMRCClass.m
//  AlbumFetch
//
//  Created by Ming on 17/2/10.
//  Copyright © 2017年 黄志明. All rights reserved.
//

#import "ACMRCClass.h"

@implementation ACMRCClass

- (void)createSubThread
{
    dispatch_async(dispatch_get_global_queue(0, 0), ^{
    
        NSString *str = [[NSString alloc] init];
        [str autorelease];
        
        [NSAutoreleasePool showPools];
        
        
    });
}

- (void)printSubThreadPoolInfo
{
    dispatch_async(dispatch_get_global_queue(0, 0), ^{
        
        NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
        
        NSString *str = [[NSString alloc] init];
        [str autorelease];
        
        [NSAutoreleasePool showPools];
        
        [pool drain];
        
    });
}

- (void)mainThreadPoolInfo
{
    [NSAutoreleasePool showPools];
}

@end
